package com.ibm.mall.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ibm.mall.base.DaoSupportImpl;
import com.ibm.mall.dao.CommodityClassDao;
import com.ibm.mall.model.CommodityClass;

/**
 * @author qiu
 * description:商品类别dao层实现类
 */
@Repository
public class CommodityClassDaoImpl extends DaoSupportImpl<CommodityClass> implements CommodityClassDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<CommodityClass> getTopCommodityClass() {
		return getSession().createQuery("from CommodityClass c where c.parent is null").list();
	}
	
	

}
